package com.highper.common.configuration;

import com.highper.common.globalization.Globalization;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.core.env.Environment;

/**
 * @Author ZhangGJ
 * @Date 2022/01/26 10:02
 */
public class HighperToolConfigure {

    @Autowired
    private MessageSource messageSource;

//    @Autowired
//    private ConfigurableApplicationContext context;
//
//    @Autowired
//    private Environment environment;

    @Bean
    public Globalization globalization() {
        return new Globalization(messageSource);
    }

//    @Bean
//    public StartRunner startRunner() {
//        return new StartRunner(context, environment);
//    }
//
//    @Bean
//    public SpringContextUtil springContextUtil() {
//        return new SpringContextUtil();
//    }
}
